package com.bjsxt.mapper;

import com.bjsxt.pojo.Company;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.awt.*;
import java.util.List;

public interface CompanyMapper {

    //查询所有信息

    List<Company> selectCompany(Company company);

    //添加公司信息
    @Insert("insert into t_company(cname,cpwd,ceo,cphone,cmail) values(#{cname},#{cpwd},#{ceo},#{cphone},#{cmail})")
    Integer insertCompany(Company company);

    //修改公司信息
    @Update("update t_company set cname=#{cname},cpwd=#{cpwd},ceo=#{ceo},cphone=#{cphone},cmail=#{cmail} where cid=#{cid}")
    Integer updateCompany(Company company);
}
